#!/usr/bin/python
# -*-coding:UTF-8 -*-

# ========================
# @Time  : 2021/6/3
# @Author: Sunny
# ========================

# 通过运行脚本的方式运行

from httprunner.api import HttpRunner

# 1.创建一个HttpRunner对象
hrunner = HttpRunner()

# 2.运行配置文件
hrunner.run(r'C:\Users\Administrator\learn_httprunner\testsuites\api_testsuite.yml')

# 3.获取执行结果
print(hrunner.summary)


#hrun testcases/login.yml --save-tests